const axios = require('axios')

exports.axiosFn = (url, callback) => {
  const config = {
    referer: "https://c.y.qq.com/",
    host: "c.y.qq.com"
    // inCharset: 'utf-8',
    // outCharset: 'utf-8',
    // notice: 0,
    // format: 'json'
  }

  axios.get(url, { headers: config }).then((response) => {
    callback(response.data)
  }).catch((e) => {
    console.log(e)
  })
}